<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AddPlan</title>
<link type="text/css" href="../css/redmond/jquery-ui-1.7.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../script/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../script/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript">
	$(document).ready( function() {
		$("#tabs").tabs();
		previewSubmitPlan();
		recommendExpert();
	});

	function previewSubmitPlan() {
        $.getJSON("PreviewSubmitPlan.action",
            function(data) {
                // 基本信息
                if (data.planDetail.main != null) {
                	$("#XMDJH").text(data.planDetail.main.registerid);
                    $("#XMZT").text(data.planDetail.main.stateid);
                    $("#XMSZD").text(data.planDetail.main.registerid);// TODO
                    $("#XMDW").text(unescape(data.planDetail.main.prjUnit));
                    $("#XMMC").text(unescape(data.planDetail.main.prjName));
                    $("#XMXZ").text(unescape(data.planDetail.main.prjXmxzName));
                    $("#KCFS").text(unescape(data.planDetail.main.prjKcfsName));
                    $("#XMGM").text(data.planDetail.main.prjXmgm);
                    $("#KZ").text(unescape(data.planDetail.main.prjKzName));
                }
        	    
                // 破坏类型
                if (data.planDetail.xmqntdphlx != null) {
                	$("#YPHWSMJ").text(data.planDetail.xmqntdphlx.yphwsmj);
                    $("#NPHWSMJ").text(data.planDetail.xmqntdphlx.nphwsmj);
                    $("#YPHTXMJ").text(data.planDetail.xmqntdphlx.yphtxmj);
                    $("#NPHTXMJ").text(data.planDetail.xmqntdphlx.nphtxmj);
                    $("#YPHYZMJ").text(data.planDetail.xmqntdphlx.yphyzmj);
                    $("#NPHYZMJ").text(data.planDetail.xmqntdphlx.nphyzmj);
                    $("#YPHWRMJ").text(data.planDetail.xmqntdphlx.yphwrmj);
                    $("#NPHWRMJ").text(data.planDetail.xmqntdphlx.nphwrmj);
                }

        	    // 生产项目概况
                if (data.planDetail.scxmgk != null) {
                	$("#YJJSYD").text(data.planDetail.scxmgk.yjjsyd);
                    $("#PHTDMJ").text(data.planDetail.scxmgk.phtdmj);
                    $("#ZYZCL").text(data.planDetail.scxmgk.zyzcl);
                    $("#SCNL").text(data.planDetail.scxmgk.scnl);
                    $("#SCSTART_YEAR").text(data.planDetail.scxmgk.startYear);
                    $("#SCEND_YEAR").text(data.planDetail.scxmgk.endYear);
                }

                // 预期复垦面积
                if (data.planDetail.yqfkmj != null) {
                	$("#GDMJ").text(data.planDetail.yqfkmj.gdmj);
                    $("#YDMJ").text(data.planDetail.yqfkmj.ydmj);
                    $("#LDMJ").text(data.planDetail.yqfkmj.ldmj);
                    $("#MCDMJ").text(data.planDetail.yqfkmj.mcdmj);
                    $("#QTNYDMJ").text(data.planDetail.yqfkmj.qtnydmj);
                    $("#JSYDMJ").text(data.planDetail.yqfkmj.jsydmj);
                    $("#TDFKL").text(data.planDetail.yqfkmj.tdfkl);
                }
                
                // 项目区土地利用现状
                if (data.planDetail.xmqtdlyxz != null) {
                	$("#YPHGDMJ").text(data.planDetail.xmqtdlyxz.yphgdmj);
                    $("#NPHGDMJ").text(data.planDetail.xmqtdlyxz.nphgdmj);
                    $("#YPHYDMJ").text(data.planDetail.xmqtdlyxz.yphydmj);
                    $("#NPHYDMJ").text(data.planDetail.xmqtdlyxz.nphydmj);
                    $("#YPHLDMJ").text(data.planDetail.xmqtdlyxz.yphldmj);
                    $("#NPHLDMJ").text(data.planDetail.xmqtdlyxz.nphldmj);
                    $("#YPHMCDMJ").text(data.planDetail.xmqtdlyxz.yphmcdmj);
                    $("#NPHMCDMJ").text(data.planDetail.xmqtdlyxz.nphmcdmj);
                    $("#YPHQTNYDMJ").text(data.planDetail.xmqtdlyxz.yphqtnydmj);
                    $("#NPHQTNYDMJ").text(data.planDetail.xmqtdlyxz.nphqtnydmj);
                    $("#YPHJSYDMJ").text(data.planDetail.xmqtdlyxz.yphjsydmj);
                    $("#NPHJSYDMJ").text(data.planDetail.xmqtdlyxz.nphjsydmj);
                    $("#YPHWLYDMJ").text(data.planDetail.xmqtdlyxz.yphwlydmj);
                    $("#NPHWLYDMJ").text(data.planDetail.xmqtdlyxz.nphwlydmj);
                }

                // 投资
                if (data.planDetail.invest != null) {
                	$("#TDFKTZGS").text(data.planDetail.invest.tdfktzgs);
                    $("#DWMJTZGS").text(data.planDetail.invest.dwmjtzgs);
                }

                // 编制单位
                if (data.planDetail.unit != null) {
                    $("#DWMC").text(data.planDetail.unit.cuName);
                    $("#LXR").text(data.planDetail.unit.cuContact);
                    $("#LXDH").text(data.planDetail.unit.cuPhone);
                }
            }
        );
    }
    function recommendExpert() {
    	$("#selectExpert").hide();
        $.getJSON("../expert/GetExpertUnit.action",
            function(data) {
                var unitArr = new Array();
                for (var i = 0; i < data.expertUnitList.length; i++) {
                    unitArr.push('<option value="' + data.expertUnitList[i] + '">' + data.expertUnitList[i] + '</option>');
                }
                $("#expertUnit").append(unitArr.join(''));
                $("#expertUnit").change(function() {
                    if ($(this).val() != "0" && $(this).val() != null) {
                        $.getJSON("../expert/GetExpertList.action", {"unitName": escape($(this).val())},
                            function(data) {
                                var expertNameArr = new Array();
                                for (var j = 0; j < data.expertList.length; j++) {
                                    expertNameArr.push('<option value="' + data.expertList[j].expertid + '">' + data.expertList[j].expertname + '</option>');
                                }
                                $("#expertName").append(expertNameArr.join(''));
                            }
                        );
                    }
                });
            }
        );
        var selectText;
        var selectHidden;
        $(".select-expert-button").click(function() {
            selectText = $(this).siblings(".select-expert-text");
            selectHidden = $(this).siblings(".select-expert-hidden");
            $("#selectExpert").show();
            $("#ADD_BUTTON").click(function() {
                var expertName = $("#expertName option:selected").text();
                var expertId = $("#expertName option:selected").val();
                if (expertId != "0") {
                    selectText.val(expertName);
                    selectHidden.val(expertId);
                    $("#selectExpert").hide();
                }
            });
            $("#CANCEL_BUTTON").click(function() {
                $("#selectExpert").hide();
            });
        });
    }
</script>
<style type="text/css">
    .ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .1em .1em 0; font-size: 0.9em;}
</style>
</head>
<body>
<div id="selectExpert" style="position: absolute; width: 500px; height: 116px; z-index: 1; background-color: gray">
    <p>单位：<select id="expertUnit"><option value="0">选择单位</option></select></p>
    <p>专家：<select id="expertName"><option value="0">选择专家</option></select></p>
    <p><input type="button" value="添加" id="ADD_BUTTON"/><input type="button" value="取消" id="CANCEL_BUTTON"/></p>
</div>
<table><tr><td>项目名称：</td><td>*******复垦方案</td><td>项目编号：</td><td>2007DFA11310</td></tr></table>
<div id="tabs" style="padding: 0px; margin: 0px; width: 100%; border: none 0px;">
    <ul>
        <li><a href="#tabs-1">基本信息</a></li>
        <li><a href="#tabs-5">破坏类型</a></li>
        <li><a href="#tabs-6">项目概况</a></li>
        <li><a href="#tabs-7">预期复垦面积</a></li>
        <li><a href="#tabs-8">利用现状</a></li>
        <li><a href="#tabs-9">复垦投资</a></li>
        <li><a href="#tabs-4">附件</a></li>
        <li><a href="#tabs-3">拟推荐专家</a></li>
        <li><a href="#tabs-2">编制单位</a></li>
        <li><a href="#tabs-10">典型图片</a></li>
    </ul>
    <div id="tabs-1">
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" colspan="4"><div align="center">方案信息</div></td>
            </tr>
            <tr>
                <td width="20%" height="25"><div align="right">项目登记号：</div></td>
                <td width="30%"><span id="XMDJH"></span></td>
                <td width="20%" height="25"><div align="right">项目状态：</div></td>
                <td width="30%"><span id="XMZT"></span></td>
            </tr>
            <tr>
                <td width="20%" style="height: 19px"><div align="right">项目所在地：</div></td>
                <td width="30%" style="height: 19px"><span id="XMSZD"></span></td>
                <td width="20%" style="height: 19px"><div align="right">项目单位：</div></td>
                <td width="30%" style="height: 19px"><span id="XMDW"></span></td>
            </tr>
            <tr>
                <td width="20%" height="25"><div align="right">项目名称：</div></td>
                <td width="30%"><span id="XMMC"></span></td>
                <td width="20%" height="25"><div align="right">项目性质：</div></td>
                <td width="30%"><span id="XMXZ"></span></td>
            </tr>
            <tr>
                <td width="20%" height="25"><div align="right">开采方式：</div></td>
                <td width="30%"><span id="KCFS"></span></td>
                <td width="20%" height="25"><div align="right">项目规模：</div></td>
                <td width="30%"><span id="XMGM"></span></td>
            </tr>
            <tr>
                <td width="20%"><div align="right">矿种：</div></td>
                <td width="30%"><span id="KZ"></span></td>
                <td width="20%" height="25">&nbsp;</td>
                <td width="30%">&nbsp;</td>
            </tr>
        </table>
    </div>
    <div id="tabs-2">
        <table width="100%" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" colspan="4"><div align="center">方案编制单位</div></td>
            </tr>
            <tr>
                <td width="20%" style="height: 33px"><div align="right">单位名称：</div></td>
                <td width="30%" style="height: 33px"><span id="DWMC"></span></td>
                <td width="20%" style="height: 33px"><div align="right">联系人：</div></td>
                <td width="30%" style="height: 33px"><span id="LXR"></span></td>
            </tr>
            <tr>
                <td height="25" width="20%"><div align="right">联系电话：</div></td>
                <td width="30%"><span id="LXDH"></span></td>
                <td height="25" width="20%">&nbsp;</td>
                <td width="30%">&nbsp;</td>
            </tr>
            <tr>
                <td height="25" width="20%">&nbsp;</td>
                <td width="30%">&nbsp;</td>
                <td height="25" width="20%">&nbsp;</td>
                <td width="30%">&nbsp;</td>
            </tr>
        </table>
    </div>
    <div id="tabs-3">
        <table width="100%" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" colspan="4"><div align="center">评审专家组成员</div></td>
            </tr>
            <tr>
                <td width="20%" height="25"><div align="right">专家组长：</div></td>
                <td width="30%"><input type="text" class="select-expert-text" readonly="true"/><input type="hidden" class="select-expert-hidden"/><input type="button" class="select-expert-button" value="选择" /></td>
                <td height="25" width="20%"><div align="right">专家1：</div></td>
                <td width="30%"><input type="text" class="select-expert-text" readonly="true"/><input type="hidden" class="select-expert-hidden"/><input type="button" class="select-expert-button" value="选择" /></td>
            </tr>
            <tr>
                <td width="20%"><div align="right">专家2：</div></td>
                <td width="30%"><input type="text" class="select-expert-text" readonly="true"/><input type="hidden" class="select-expert-hidden"/><input type="button" class="select-expert-button" value="选择" /></td>
                <td width="20%"><div align="right">专家3：</div></td>
                <td width="30%"><input type="text" class="select-expert-text" readonly="true"/><input type="hidden" class="select-expert-hidden"/><input type="button" class="select-expert-button" value="选择" /></td>
            </tr>
            <tr>
                <td width="20%" height="25"><div align="right">专家4：</div></td>
                <td width="30%"><input type="text" class="select-expert-text" readonly="true"/><input type="hidden" class="select-expert-hidden"/><input type="button" class="select-expert-button" value="选择" /></td>
                <td height="25" width="20%">&nbsp;</td>
                <td width="30%">&nbsp;</td>
            </tr>
        </table>
    </div>
    <div id="tabs-4">
		<table width="100%" align="center" cellpadding="0" cellspacing="0">
		    <tr>
                <td width="20%" colspan="4">附件清单：</td> <td width="20%" colspan="4">&nbsp;</td>
                <td width="20%" colspan="4"></td>
            </tr>
			<tr>
				<td height="25" style="width: 30%"><div align="right"></div></td>
			  <td height="25">附件1名称
		      <input type="submit" name="Submit22" value="删除附件" /></td>
			    <td height="25">&nbsp;</td>
			</tr>
			<tr>
				<td height="25" width="30%"><div align="right"></div></td>
			  <td height="25">附件2名称
		        <input type="submit" name="Submit2" value="删除附件" /></td>
			</tr>
			<tr>
				<td width="30%"><div align="right"></div></td>
			  <td height="25">附件3名称
		        <input type="submit" name="Submit23" value="删除附件" /></td>
			</tr>
		</table>
	</div>
    <div id="tabs-5">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="20%" colspan="4"><div align="center">项目区内土地破坏类型</div></td>
            </tr>
            <tr>
                <td align="right" style="width: 30%; height: 25px;">已破坏挖损面积：</td>
                <td style="height: 25px"><span id="YPHWSMJ"></span></td>
            </tr>
            <tr>
                <td align="right" style="width: 30%; height: 25px;">拟破坏挖损面积：</td>
                <td style="height: 25px"><span id="NPHWSMJ"></span></td>
            </tr>
            <tr>
                <td height="25" align="right" style="width: 30%">已破坏塌陷面积：</td>
                <td height="25"><span id="YPHTXMJ"></span></td>
            </tr>
            <tr>
                <td height="25" align="right" style="width: 30%">拟破坏塌陷面积：</td>
                <td height="25"><span id="NPHTXMJ"></span></td>
            </tr>
            <tr>
                <td height="25" align="right" style="width: 30%">已破坏压占面积：</td>
                <td height="25"><span id="YPHYZMJ"></span></td>
            </tr>
            <tr>
                <td height="25" align="right" style="width: 30%">拟破坏压占面积：</td>
                <td height="25"><span id="NPHYZMJ"></span></td>
            </tr>
            <tr>
                <td align="right" style="width: 30%; height: 25px;">已破坏污染面积：</td>
                <td style="height: 25px"><span id="YPHWRMJ"></span></td>
            </tr>
            <tr>
                <td height="25" align="right" style="width: 30%">拟破坏污染面积：</td>
                <td height="25"><span id="NPHWRMJ"></span></td>
            </tr>
        </table>
    </div>
    <div id="tabs-6">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="20%" colspan="4"><div align="center">生产项目概况</div></td>
            </tr>
            <tr>
                <td width="30%" align="right" style="height: 25px">永久建设用地：</td>
                <td style="height: 25px"><span id="YJJSYD"></span></td>
            </tr>
            <tr>
                <td width="30%" align="right" style="height: 25px">破坏土地面积：</td>
                <td style="height: 25px"><span id="PHTDMJ"></span></td>
            </tr>
            <tr>
                <td width="30%" align="right" style="height: 25px">资源总储量：</td>
                <td style="height: 25px"><span id="ZYZCL"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">生产能力：</td>
                <td height="25"><span id="SCNL"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">生产起始年限：</td>
                <td height="25"><span id="SCSTART_YEAR"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">生产结束年限：</td>
                <td height="25"><span id="SCEND_YEAR"></span></td>
            </tr>
        </table>
    </div>
    <div id="tabs-7">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="20%" colspan="4"><div align="center">预期复垦面积</div></td>
            </tr>
            <tr>
                <td width="30%" align="right" style="height: 25px">耕地面积：</td>
                <td style="height: 25px"><span id="GDMJ"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">园地面积：</td>
                <td height="25"><span id="YDMJ"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">林地面积：</td>
                <td height="25"><span id="LDMJ"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">牧草地面积：</td>
                <td height="25"><span id="MCDMJ"></span></td>
            </tr>
            <tr>
                <td width="30%" align="right" style="height: 25px">其他农用地面积：</td>
                <td style="height: 25px"><span id="QTNYDMJ"></span></td>
            </tr>
            <tr>
                <td width="30%" align="right" style="height: 25px">建设用地面积：</td>
                <td style="height: 25px"><span id="JSYDMJ"></span></td>
            </tr>
            <tr>
                <td height="25" width="30%" align="right">土地复垦率：</td>
                <td height="25"><span id="TDFKL"></span></td>
            </tr>
        </table>
    </div>
    <div id="tabs-8">
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
			<tr>
				<td width="20%" colspan="4"><div align="center">项目区土地利用现状</div></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">已破坏耕地面积：</td>
				<td height="25" style="width: 448px"><span id="YPHGDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">拟破坏耕地面积：</td>
				<td height="25" style="width: 448px"><span id="NPHGDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">已破坏园地面积：</td>
				<td height="25" style="width: 448px"><span id="YPHYDMJ"></span></td>
			</tr>
			<tr>
				<td width="30%" align="right" style="height: 25px">拟破坏园地面积：</td>
				<td style="width: 448px; height: 25px"><span id="NPHYDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">已破坏林地面积：</td>
				<td height="25" style="width: 448px"><span id="YPHLDMJ"></span></td>
			</tr>
			<tr>
				<td width="30%" align="right" style="height: 25px">拟破坏林地面积：</td>
				<td style="height: 25px; width: 448px;"><span id="NPHLDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">已破坏牧草地面积：</td>
				<td height="25" style="width: 448px"><span id="YPHMCDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">拟破坏牧草地面积：</td>
				<td height="25" style="width: 448px"><span id="NPHMCDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">已破坏其他农用地面积：</td>
				<td height="25" style="width: 448px"><span id="YPHQTNYDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">拟破坏其他农用地面积：</td>
				<td height="25" style="width: 448px"><span id="NPHQTNYDMJ"></span></td>
			</tr>
			<tr>
				<td width="30%" align="right" style="height: 25px">已破坏建设用地面积：</td>
				<td style="height: 25px; width: 448px;"><span id="YPHJSYDMJ"></span></td>
			</tr>
			<tr>
				<td width="30%" align="right" style="height: 25px">拟破坏建设用地面积：</td>
				<td style="height: 25px; width: 448px;"><span id="NPHJSYDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">已破坏未利用地面积：</td>
				<td height="25" style="width: 448px"><span id="YPHWLYDMJ"></span></td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">拟破坏未利用地面积：</td>
				<td height="25" style="width: 448px"><span id="NPHWLYDMJ"></span></td>
			</tr>
		</table>
    </div>
    <div id="tabs-9">
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
			<tr>
				<td height="25" width="30%" align="right">土地复垦投资估算</td>
				<td height="25" width="*"><span id="TDFKTZGS"></span>万元(人民币)</td>
			</tr>
			<tr>
				<td height="25" width="30%" align="right">单位面积投资估算</td>
				<td height="25" width="*"><span id="DWMJTZGS"></span>万元/公顷</td>
			</tr>
		</table>
	</div>
	<div id="tabs-10">
    </div>
</div>
<div>
    <input type="button" value="提交" id="SUBMIT_BUTTON"/>
</div>
</body>
</html>